package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Collect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CollectMapper extends BaseMapper<Collect> {

    @Select("select poetry_id from collect where user_id = #{userId} order by create_time desc limit 10 offset #{pageNo}")
    List<Integer> getMyCollect(Long userId,Integer pageNo);

}
